---
import Default from "@astrojs/starlight/components/PageTitle.astro";
import type { ComponentProps } from "astro/types";

import HomepagePageTitle from "./HomepagePageTitle.astro";

type Props = ComponentProps<typeof Default>;

const isHomepage = Astro.props.slug === "";
---

{isHomepage ? <HomepagePageTitle /> : <Default {...Astro.props} />}
